<?php
// $client = new Yar_Client('http://patternrpc.shaohuajj.com/server.php');
$client = new Yar_Client(RPC_URL);

// 测试加减法
$result = $client->add(1, 2);
echo $result;

// 搜索
$result = $client->search("项目");

print_r($result);

// 添加索引
$result = $client->addIndex(1);

// 更新索引
$result = $client->updateIndex(1);

// 删除索引
$result = $client->delIndex(1);